import java.awt.*;
import java.io.*;

abstract public class CObject
{
	int type;
	int subtype;

	boolean active = false;
	boolean selected = false;
	boolean blink = false;
	Color color = null;
	Color color2 = null;

	int bc = 0;

	int x1,y1,x2,y2,xmin,xmax,ymin,ymax,dy,dx,k,wcnt,disp,mx,my,px,py,d,fw,fh,x,y;
	int imageIndex = 0;

	CObject(int type,int subtype)
	{
		this.type = type;
		this.subtype = subtype;
		color2 = new Color(128,128,128);
	}

	abstract void init();

	abstract void draw(Graphics g);
	abstract boolean checkActive(int mx,int my);
	abstract void move(int mx,int my,int start_x,int start_y);
	abstract void write(DataOutputStream out) throws IOException;
}